package com.xmh.ssm.utils;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.junit.Test;

public class HTMLUtils {
	
	@Test
	public void test1() {
		String str = "<div class=\"inner\">\r\n" + 
				"\r\n" + 
				"<div class=\"bd\" id=\"pageNo-1\" data-page-no=\"1\" data-mate-width=\"892.949\" data-mate-height=\"1262.85\" style=\"height: 1349.19px;\" data-scale=\"0.70709031159679\" data-render=\"1\"><div class=\"reader-parent-b38226c13186bceb19e8bb5a reader-parent \" style=\"position: relative; top: 0px; left: 0px; transform: scale(1); transform-origin: 0px 0px;\"><div class=\"reader-wrapb38226c13186bceb19e8bb5a\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;\"><div class=\"reader-main-b38226c13186bceb19e8bb5a\" style=\"position:relative;top:0;left:0;width:100%;height:100%;\"><div class=\"reader-pic-layer\" style=\"z-index:1\"><div class=\"ie-fix\"><p class=\"reader-pic-item\" style=\"width:893px;height:46px;z-index:0;left:30.513355799999953px;top:37.8988px;opacity:1;-webkit-transform: scale(1.0683389827547591,1.0684);position:absolute;overflow:hidden;\"><img width=\"893\" height=\"393\" style=\"position:absolute;top:-0px;left:-0px;clip:rect(0px,893px, 393px, 0px);\" src=\"https://wkbjcloudbos.bdimg.com/v1/docconvert7173/wk/0d53ad208f62c070179b54044676f201/0.png?responseContentType=image%2Fpng&amp;responseCacheControl=max-age%3D3888000&amp;responseExpires=Thu%2C%2027%20Feb%202020%2013%3A58%3A47%20%2B0800&amp;authorization=bce-auth-v1%2Ffa1126e91489401fa7cc85045ce7179e%2F2020-01-13T05%3A58%3A47Z%2F3600%2Fhost%2F5d220ccaacfaa7d2bae09887a3f68c347702aec60d81d8c7e75ba2b136360379&amp;x-bce-range=0-10817&amp;token=eyJ0eXAiOiJKSVQiLCJ2ZXIiOiIxLjAiLCJhbGciOiJIUzI1NiIsImV4cCI6MTU3ODg5ODcyNywidXJpIjp0cnVlLCJwYXJhbXMiOlsicmVzcG9uc2VDb250ZW50VHlwZSIsInJlc3BvbnNlQ2FjaGVDb250cm9sIiwicmVzcG9uc2VFeHBpcmVzIiwieC1iY2UtcmFuZ2UiXX0%3D.Zyuk91junst3Vc57snvpN1tNkN%2BBEocEAN8%2BnueTNiY%3D.1578898727\" alt=\"\"></p></div></div><div class=\"reader-txt-layer\" style=\"z-index:2\"><div class=\"ie-fix\"><p class=\"reader-word-layer reader-word-s1-0\" style=\"width:1299px;height:144px;line-height:144px;top:721px;left:6634px;z-index:1;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:1948px;height:216px;false\">农业专家.net(V2.0)</p></div></div><div class=\"reader-pic-layer\" style=\"z-index:3\"><div class=\"ie-fix\"><div class=\"reader-pic-item\" style=\"background-image: url(https://wkbjcloudbos.bdimg.com/v1/docconvert7173/wk/0d53ad208f62c070179b54044676f201/0.png?responseContentType=image%2Fpng&amp;responseCacheControl=max-age%3D3888000&amp;responseExpires=Thu%2C%2027%20Feb%202020%2013%3A58%3A47%20%2B0800&amp;authorization=bce-auth-v1%2Ffa1126e91489401fa7cc85045ce7179e%2F2020-01-13T05%3A58%3A47Z%2F3600%2Fhost%2F5d220ccaacfaa7d2bae09887a3f68c347702aec60d81d8c7e75ba2b136360379&amp;x-bce-range=0-10817&amp;token=eyJ0eXAiOiJKSVQiLCJ2ZXIiOiIxLjAiLCJhbGciOiJIUzI1NiIsImV4cCI6MTU3ODg5ODcyNywidXJpIjp0cnVlLCJwYXJhbXMiOlsicmVzcG9uc2VDb250ZW50VHlwZSIsInJlc3BvbnNlQ2FjaGVDb250cm9sIiwicmVzcG9uc2VFeHBpcmVzIiwieC1iY2UtcmFuZ2UiXX0%3D.Zyuk91junst3Vc57snvpN1tNkN%2BBEocEAN8%2BnueTNiY%3D.1578898727);background-position:0px -51px;width:758px;height:2px;z-index:2;left:97.50640000000001px;top:89.814px;opacity:1;-webkit-transform: scale(1.0684,1.0684);position:absolute;overflow:hidden;\"></div></div></div><div class=\"reader-txt-layer\" style=\"z-index:4\"><div class=\"ie-fix\"><p class=\"reader-word-layer reader-word-s1-0\" style=\"width:721px;height:144px;line-height:144px;top:721px;left:8004px;z-index:3;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:1081px;height:216px;false\">项目计划书\r\n" + 
				"</p><p class=\"reader-word-layer reader-word-s1-2\" style=\"width:72px;height:189px;line-height:189px;top:12354px;left:4723px;z-index:4;font-family:'TimesNewRomanPSMT','b38226c13186bceb19e8bb5a0020001','Times';-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:108px;height:283px;\">1\r\n" + 
				"</p></div></div><div class=\"reader-pic-layer\" style=\"z-index:5\"><div class=\"ie-fix\"><div class=\"reader-pic-item\" style=\"background-image: url(https://wkbjcloudbos.bdimg.com/v1/docconvert7173/wk/0d53ad208f62c070179b54044676f201/0.png?responseContentType=image%2Fpng&amp;responseCacheControl=max-age%3D3888000&amp;responseExpires=Thu%2C%2027%20Feb%202020%2013%3A58%3A47%20%2B0800&amp;authorization=bce-auth-v1%2Ffa1126e91489401fa7cc85045ce7179e%2F2020-01-13T05%3A58%3A47Z%2F3600%2Fhost%2F5d220ccaacfaa7d2bae09887a3f68c347702aec60d81d8c7e75ba2b136360379&amp;x-bce-range=0-10817&amp;token=eyJ0eXAiOiJKSVQiLCJ2ZXIiOiIxLjAiLCJhbGciOiJIUzI1NiIsImV4cCI6MTU3ODg5ODcyNywidXJpIjp0cnVlLCJwYXJhbXMiOlsicmVzcG9uc2VDb250ZW50VHlwZSIsInJlc3BvbnNlQ2FjaGVDb250cm9sIiwicmVzcG9uc2VFeHBpcmVzIiwieC1iY2UtcmFuZ2UiXX0%3D.Zyuk91junst3Vc57snvpN1tNkN%2BBEocEAN8%2BnueTNiY%3D.1578898727);background-position:0px -58px;width:525px;height:330px;z-index:17;left:214.00639999999999px;top:533.7336px;opacity:1;-webkit-transform: scale(1.0678301866666666,1.0684);position:absolute;overflow:hidden;\"></div></div></div><div class=\"reader-txt-layer\" style=\"z-index:6\"><div class=\"ie-fix\"><p class=\"reader-word-layer reader-word-s1-3\" style=\"width:2884px;height:380px;line-height:380px;top:5301px;left:2061px;z-index:18;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:4326px;height:570px;false\">文档名称：项目计划书</p><p class=\"reader-word-layer reader-word-s1-3\" style=\"width:3152px;height:380px;line-height:380px;top:5801px;left:2061px;z-index:19;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:4728px;height:570px;false\">项目名称：农业专家.net</p><p class=\"reader-word-layer reader-word-s1-4\" style=\"width:724px;height:317px;line-height:317px;top:5852px;left:5300px;z-index:20;font-size:240px;letter-spacing:0.17px;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:1086px;height:475px;false\">(V2.0)</p><p class=\"reader-word-layer reader-word-s1-3\" style=\"width:2019px;height:380px;line-height:380px;top:6301px;left:2061px;z-index:21;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:3028px;height:570px;false\">文档编写：白启</p><p class=\"reader-word-layer reader-word-s1-3\" style=\"width:1196px;height:380px;line-height:380px;top:6301px;left:4225px;z-index:22;letter-spacing:0.37px;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:1794px;height:570px;false\">(EricBai)</p><p class=\"reader-word-layer reader-word-s1-5\" style=\"width:3553px;height:380px;line-height:380px;top:6801px;left:2061px;z-index:23;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:5329px;height:570px;false\">编写时间：2004年4月19日</p><p class=\"reader-word-layer reader-word-s1-5\" style=\"width:3553px;height:380px;line-height:380px;top:7301px;left:2061px;z-index:24;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:5329px;height:570px;false\">校对时间：2004年4月20日</p><p class=\"reader-word-layer reader-word-s1-5\" style=\"width:3553px;height:380px;line-height:380px;top:7801px;left:2061px;z-index:25;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:5329px;height:570px;false\">审核时间：2004年4月20日</p><p class=\"reader-word-layer reader-word-s1-3\" style=\"width:3173px;height:380px;line-height:380px;top:8301px;left:2061px;z-index:26;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:4759px;height:570px;false\">开发团队：东北农业大学\r\n" + 
				"</p><p class=\"reader-word-layer reader-word-s1-3\" style=\"width:576px;height:380px;line-height:380px;top:8301px;left:5811px;z-index:31;-webkit-transform: scaleX(0.999);-webkit-transform-origin:left top;width:864px;height:570px;false\">白启\r\n" + 
				"</p></div></div></div></div></div></div>\r\n" + 
				"</div>";
		Document parse = Jsoup.parse(str);
		
		String text = parse.text();
		


		System.out.println(text);
	}

}
